package goActorsCommon

import (
	"os"
	"gob"
)

var _typesRegistered = false

func RegisterTypesGob() os.Error {
	if ( !_typesRegistered ) {
		gob.Register( New_RegisterArgsWrap( "", nil ) )
		gob.Register( New_NameWrap ( "" ) )
		gob.Register( New_PidWrap ( nil ) )
		gob.Register( New_GoActorPid( nil, 0 ) )
		gob.Register( New_GoInstancePid( "", 0 ) )
		gob.Register( New_MessageWrapper( New_Message( New_GoActorPid( New_GoInstancePid( "", 0 ), 0 )	, make( []byte, 0, 0 ) ), 0 ) )
		_typesRegistered = true
	}
	return nil
}
